FROM tomcat

ADD sources.list  /etc/apt/

# install supervisor
RUN apt-get update && \
        apt-get install -y python-setuptools && \
        easy_install pip && \
        pip install supervisor && \
        rm -rf /var/lib/apt/lists/*


ADD jmxtrans-254-all-with-appID.jar /opt/jmxtrans/
ADD catalina.sh /usr/local/tomcat/bin/
ADD supervisord.conf /etc/
ADD jmxtrans_temp.json /opt/jmxtrans/conf/jmxtrans.json

ADD update_jmxtrans_conf.sh /

EXPOSE 8080 8081

CMD ["supervisord"]


